<%@ page contentType="text/html; charset=UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<html>
<head>
    <link href="<s:url value="resources/css/main.css"/>" rel="stylesheet" type="text/css"/>
    <title><s:text name="label.customers"/></title>
</head>
<body>

<table align=center>
<tr><td><h1 ><s:text name="label.custOrders"/> </h1></td></tr>
</table>
	<table width=600 align=center>
	    <tr> <s:url id="insert" action="custOrderSetUpForInsert"/>
	         <td><s:a href="%{insert}">Click Here to Add New Cust Order</s:a></td>
	     </tr>
	</table><br/>
<table align=center class="borderAll">
    <tr>
        <th><s:text name="label.custOrder.orderDate"/></th>
        <th><s:text name="label.custOrder.requiredDate"/></th>
        <th><s:text name="label.custOrder.shippedDate"/></th>
        <th><s:text name="label.payment.paymentType"/></th>
        <th><s:text name="label.payment.amount"/></th>
        <th><s:text name="label.payment.paymentDate"/></th>
        <th><s:text name="label.payment.checkNumber"/></th>
        <th><s:text name="label.payment.bankName"/></th>
        <th><s:text name="label.payment.branchName"/></th>
        <th><s:text name="label.payment.cleared"/></th>
        <th><s:text name="label.payment.creditCardNumber"/></th>
        <th><s:text name="label.payment.expireyDate"/></th>
        <th><s:text name="label.payment.creditCardType"/></th>
        <th>&nbsp;</th>
    </tr>
    <s:iterator value="custOrders" status="status">
        <tr class="<s:if test="#status.even">even</s:if><s:else>odd</s:else>">
            <td class="nowrap"><s:property value="orderDate"/></td>
            <td class="nowrap"><s:property value="requiredDate"/></td>
            <td class="nowrap"><s:property value="shippedDate"/></td>

            <td class="nowrap"><s:property value="payment.paymentType"/></td>
            <td class="nowrap"><s:property value="payment.amount"/></td>
            <td class="nowrap"><s:property value="payment.paymentDate"/></td>
            <td class="nowrap"><s:property value="payment.checkNumber"/></td>
            <td class="nowrap"><s:property value="payment.bankName"/></td>
            <td class="nowrap"><s:property value="payment.branchName"/></td>
            <td class="nowrap"><s:property value="payment.cleared"/></td>

                 <td class="nowrap"><s:property value="payment.creditCardNumber"/></td>
                 <td class="nowrap"><s:property value="payment.expireyDate"/></td>
                 <td class="nowrap"><s:property value="payment.creditCardType"/></td>

        </tr>  		
	 </s:iterator>
    </table>
</body>
</html>
